<template>
  <div class="check-page">
    <div class="check-foot">
      <!-- <div class="foot" @click='reset = 0' :class="reset === 0 ? 'foot-right' : ''">重置</div>
      <div class="foot" @click='reset = 1' :class="reset === 1 ? 'foot-right' : ''">确定</div>-->
      <div class="foot foot-left" @click="onreset">重置</div>
      <div class="foot foot-right" @click="onconfirm">确定</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'checkfoot',
  data () {
    return {
      reset: 1
    }
  },
  methods: {
    onreset () { // 重置方法
      this.$emit('resetTime')
    },
    onconfirm () { // 确定方法
      this.$emit('confirmTime')
    }
  }
}
</script>

<style lang="stylus" scoped>
.check-foot {
  position: fixed;
  bottom: 0;
  height: 1rem;
  line-height: 1rem;
  width: 100%;
  border-top: 0.01rem solid $color-content-border;
  display: flex;
  flex: 1;
  font-size: 0.32rem;
  z-index: 99;

  .foot {
    width: 50%;
    text-align: center;
    color: $color-search-text;
    background-color: #fff;
  }

  .foot-right {
    color: $color-fff;
    background-color: $color;
  }
}
</style>
